from django.contrib import admin
from django.urls import path

from api import views
from api.views import EmployeeGenericAPIView,MixinsAPIView,ViewsetsAPIView,Sets

urlpatterns = [
    path('api_user/',views.EmployeeAVIView.as_view()),
    path('api_user/<str:id>/',views.EmployeeAVIView.as_view()),
    path('generic/',EmployeeGenericAPIView.as_view()),
    path('generic/<str:pk>/',EmployeeGenericAPIView.as_view()),
    path('mixins/',MixinsAPIView.as_view()),
    path('mixins/<str:pk>/',MixinsAPIView.as_view()),
    path('viewsets/',ViewsetsAPIView.as_view({"post":"login","get":"count"})),
    path('viewsets/<str:pk>/',ViewsetsAPIView.as_view({"post":"login","get":"count"})),
    path('sets/',Sets.as_view({"post":"login","get":"register"})),
    path('sets/<str:pk>/',Sets.as_view({"post":"login","get":"register"})),
]
